# -*- coding: utf-8 -*-
"""
Created on Tue Oct  2 19:15:02 2018

@author: wsg
"""

import threading
class A(threading.Thread):
    def __init__(self):
        threading.Thread.__init__(self)
    def run(self):
        for i in range(0,10):
            print("我是线程A")
class B(threading.Thread):
    def __init__(self):
        threading.Thread.__init__(self)
    def run(self):
        for i in range(0,10):
            print("我是线程B")
            
t1=A()
t1.start()
t2=B()
t2.start()


